#include <iostream>



class integer
{
public:
    explicit integer(int a)
    {
        printf("integer(int a)\n");
        num = a;
    }
    int GetInteger()
    {
        return num;
    }
private:
    int num;
};
int main()
{
    integer a(10);
    std::cout << a.GetInteger() << std::endl;
    a=integer(20);
    std::cout << a.GetInteger() << std::endl;
    return 0;
}